#define appname      "${app.name}"
#define appversion   "${project.version}"
#define appurl       "https://code.google.com/p/loc-tool/"
#define appmodule    "loc-tool"

#define applisence   "LICENSE-2.0.txt"
#define appicon      "{app}\icons\Actions-games-solve.ico"

[Setup]
AppId={{0B6EA563-82A2-4F7B-8CDE-14E81A947114}
AppName={#appname}
AppVersion={#appversion}
AppSupportURL={#appurl}
AppUpdatesURL={#appurl}
DefaultDirName={pf}\{#appname}\{#appversion}\
DefaultGroupName={#appname}
LicenseFile={#applisence}
OutputBaseFilename={#appmodule}-{#appversion}-installer
Compression=lzma
SolidCompression=yes

[Languages]
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"

[Files]
Source: "url\Localization Tool - Google Project Hosting.url"; DestDir: "{app}\"
Source: "{#applisence}"; DestDir: "{app}\"
Source: "release.txt"; DestDir: "{app}\"
Source: "icons\*"; DestDir: "{app}\icons\"
Source: "*.jar"; DestDir: "{app}\"

[Icons]
Name: "{group}\{#appname}-{#appversion}"; Filename: "{app}\loc-tool-${project.version}.jar"; IconFilename: "{#appicon}"
Name: "{group}\{cm:ProgramOnTheWeb,{#appname}}"; Filename: "{#appurl}"
Name: "{group}\{cm:UninstallProgram,{#appname}}"; Filename: "{uninstallexe}"
Name: "{userdesktop}\{#appname}-{#appversion}"; Filename: "{app}\loc-tool-${project.version}.jar"; IconFilename: "{#appicon}"

[UninstallDelete]
Type: files; Name: {app}\logs\*.*; 
Name: {app}\logs; Type: filesandordirs;
